// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.gate;

import com.dustedpixels.jasmin.unit.Unit;

/**
 * Logic AND gate.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class AND implements Unit {
  public boolean IN1 = false;
  public boolean IN2 = false;
  public boolean OUT = false;
  
  public void updateEndPoints() {
    OUT = IN1 && IN2;
  }
}
